package org.example.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class TeacherDaoImpl implements TeacherDao{
    @Autowired
    private JdbcTemplate jdbcTemplate;



    @Override
    public void createTableTeacher() {
        String sql = "create table if not exists Teacher(id char(50),name char(50),department int)";
        jdbcTemplate.execute(sql);
    }
}
